﻿using Basic.FlowGatewayModule.Interface;
using Basic.FlowRemoteModel.FlowAppForm;
using Basic.FlowRemoteModel.NodeFormData.Model;

namespace Basic.FlowGatewayModule.lmpl
{
    internal class FlowAppFormRelationService : IFlowAppFormRelationService
    {
        public DataRelation[] Gets ( long appId )
        {
            return new GetAppFormRelation
            {
                AppId = appId,
            }.Send();
        }

        public void Sync ( long appId, DataRelation[] adds )
        {
            new SetAppFormRelation
            {
                AppId = appId,
                Relation = adds
            }.Send();
        }
    }
}
